package com.jiayang.hhotel.ui;

import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.jiayang.hhotel.R;
import com.jiayang.hhotel.presenter.ReSetPsdPresenter;

import cn.droidlover.xdroidmvp.mvp.XActivity;

/**
 * 重置密码
 * Created by Administrator on 2017/5/17 0017.
 */

public class ReSetPsdActivity extends XActivity<ReSetPsdPresenter> {

    private EditText oldPsd,newPsd,deterPsd,code;//旧密码，新密码，确认密码，验证码
    private TextView getCode;//获取验证码
    private Button deter;//获取验证码，确认修改

    @Override
    public void initData(Bundle savedInstanceState) {
        initTitle(this,true,getString(R.string.reset_psd),R.color.orange_color,null,null);
        getCode= (TextView) findViewById(R.id.bt_get_code);
        deter= (Button) findViewById(R.id.bt_deter);
        oldPsd= (EditText) findViewById(R.id.et_old_psd);
        newPsd= (EditText) findViewById(R.id.et_new_psd);
        deterPsd= (EditText) findViewById(R.id.et_deter_psd);
        code= (EditText) findViewById(R.id.et_code);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_reset_psw;
    }

    @Override
    public ReSetPsdPresenter newP() {
        return new ReSetPsdPresenter();
    }
}
